package com.shixun.service.Impl;
import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.shixun.mapper.LeaveMapper;
import com.shixun.pojo.TbLeave;
import com.shixun.service.LeaveService;
@Service
public class LeaveServiceImpl implements LeaveService {
    @Resource
    LeaveMapper leaveMapper;

    @Override
    public Integer addLeave(TbLeave tbLeave) {
        return leaveMapper.addLeave(tbLeave);
    }
    @Override
    public Integer changeStatus(Integer leaveId, Integer leaveStatus) {
        return leaveMapper.changeStatus(leaveId,leaveStatus);
    }
}
